package com.qidian.k12.service;

import com.qidian.k12.pojo.TestScore;
import com.qidian.k12.util.K12Result;
import com.qidian.k12.vo.TestScoreSaveVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;


/**
 * (TestScore)表服务接口
 *
 * @author makejava
 * @since 2021-10-30 09:05:07
 */
@Transactional
public interface TestScoreService {

    K12Result queryDetail(long scoreId);

    /**
     * 分页查询
     * @param map
     * {page,row,scoreName,templateId,studentNo,studentName,timeStart,timeEnd,scoreStart,ScoreEnd,score,scoreStatus}
     * @return K12Result 中包裹一个pageInfo
     */
    K12Result queryByPager(Map map);


    K12Result save(TestScoreSaveVo vo);

    /**
     * 通过ID查询单条数据
     *
     * @param scoreId 主键
     * @return 实例对象
     */
    TestScore queryById(Long scoreId);

    /**
     * 新增数据
     *
     * @param testScore 实例对象
     * @return 实例对象
     */
    TestScore insert(TestScore testScore);

    /**
     * 修改数据
     *
     * @param testScore 实例对象
     * @return 实例对象
     */
    TestScore update(TestScore testScore);

    /**
     * 通过主键删除数据
     *
     * @param scoreId 主键
     * @return 是否成功
     */
    boolean deleteById(Long scoreId);

}
